inpen and inkey function
--------------
inpen returns the status of the last pen click
if inpen returns 
	0 nothing was clicked
	1 Pen clicked
	2 key pressed

use inkey to get the keycode
use posx and posy for pen click coords

Keycodes:
	Address	2
	Sched	3
	Todo	4
	Memo	5
	PgUp	6
	PgDn	7

	Calend	8
	Expense	9
	Calc	10
	Table	11
	Apps	12
	Find	13

pressat	function
----------------
pat. x,y,a,b,c,d

x,y 	= Coordinates of click
a,b,c,d	= region to invert if clicked within

Return Value

1, pen taped and released in the given range;
0, pen taped or released out of the range.  


buzzer function
---------------
First param 	= Tone 1 to 7
Sec param	= Duration (1/16th sec)

lcopy function (LcdCopy)
------------------------
0	Virtual to real
1	Real to virtual

power function (power management)
--------------
0	Disable 
1	Enable

pmode function
--------------
0	Draw text normal
1	Draw text reverse video

message function
----------------
0	Displays a Warning message box
2	Displays an Information message box
256	Puts a Yes button into the message box.
512	Puts a No button into the message box.
1024	Puts an OK button into the message box.
2048	Puts a Cancel button into the message box.

ex:
3072	OkCancel
768	YesNo
2816	YesNoCancel


Exit Command codes
------------------
OK	3
Cancel	4
Yes	5
No	6

Drawing attribute
-----------------

0
Draws black pixels.
1
Draws gray pixels.
2
Draws white pixels.
3
Draws dashed pixels.
4
Draws 1 black, skips 3 and draws 1 black.
5
Draws 1 white, skips 3 and draws 1 white.
6
Draws 1 black, skips 2 and draws 1 black.
7
Draws 1 white, skips 2 and draws 1 white.
8
Draws 1 black, skips 1 and draws 1 black.
128
Flag for XOR mode (0x80).
